package com.changpei.core.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * <p>Title : ContentTmp</p>
 * <p>Description : ContentTmp构建</p>
 * @author weibiao
 */
@Data
@TableName("tb_content_tmp")
public class ContentTmp implements Serializable {

    /** serialVersionUID*/
    private static final long serialVersionUID = -1L;

    @Id
    private Long id;

    /**
     * 内容
     */
    private String content;

    /**
     * 分类ID
     */
    private Long categoryId;

    /**
     * 点赞数
     */
    private Long likedNum;

    /**
     * 收藏数
     */
    private Long collectedNum;

    /**
     * 分享数
     */
    private Long sharedNum;

    /**
     * 评论数
     */
    private Long commentedNum;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 内容状态
     */
    @TableLogic(value = "0", delval = "1")
    private Integer status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;


}
